import L7sQueue from "../pages/SqlExec/L7sQueue";
import DashBoard from "../pages/DashBoard";
import TaskManage from "../pages/Task";
import NotFound from "../pages/NotFound";
import Test from "../pages/Test";
import FundWatch from "../pages/PepsiLuck/FundWatch";
import Demo1 from "../pages/Contract/demo1";
import ContrastValue from "../pages/Contract/ContrastValue";
import EthersTest from "../pages/Test/ethers";
import Vote from "../pages/Contract/Vote";

const routes = [
    {
        "title": "数据面板",
        "to": "/DashBoard",
        "component": DashBoard
    }, {
        "title": "区块链",
        "sub": [
            {
                "title": "投票合约",
                "to": "/vote",
                "component": Vote
            }, {
                "title": "合约测试Deom1",
                "to": "/contract_demo_1",
                "component": Demo1
            }, {
                "title": "比大小游戏",
                "to": "/contrast_value",
                "component": ContrastValue
            }, {
                "title": "Ethers测试",
                "to": "/ethers_test",
                "component": EthersTest
            }
        ]
    },
    {
        "title": "Task 管理",
        "to": "/TaskManage",
        "component": TaskManage
    },
    {
        "title": "物流",
        "sub": [
            {
                "title": "推送队列",
                "to": "/PushLogisticsQueue",
                "component": L7sQueue
            }
        ]
    },
    {
        "title": "更多",
        "sub": [
            {
                "title": "404页面",
                "to": "/NotFound",
                "component": NotFound
            }
        ]
    },
    {
        "title": "Test Page",
        "to": "/Test",
        "component": Test
    }, {
        "title": "百事可爱",
        "sub": [
            {
                "title": "基金关注",
                "to": "/FundWatch",
                "component": FundWatch
            }
        ]
    }
]

export default routes